package com.yc.dao;

import com.yc.bean.FoodTypeBean;
import com.yc.commons.DBHelper;

import java.util.List;

public class FoodTypeDao {
    static DBHelper db=new DBHelper();

    public static List<FoodTypeBean> find() {
        String sql="select * from tb_food_type";
        try {
            return db.select(FoodTypeBean.class, sql);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }

    }
}
